<?php
/* @var $this InsertController */
/* @var $model Insert */

$this->breadcrumbs=array(
	'Inserts'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Insert', 'url'=>array('index')),
	array('label'=>'Create Insert', 'url'=>array('create')),
	array('label'=>'Update Insert', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Insert', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Insert', 'url'=>array('admin')),
);
?>

<h1>View Insert #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array('label'=>'User', 'value'=>$model->user->fname .' '. $model->user->lname ),
		'inventory_id',
		'date',
		
		'comment',
		array('label' => 'Qty', 'value' => $model->inventory->qty_in_stock + $model->qty ),
	),
)); ?>
